export default [
  {
    type: 'select',
    props: { label: '类型' },
    id: 'selectValue',
    innerComponentProps: { mode: 'multiple',options:[
      { label: '商品类型1', value: '1' },
      { label: '商品类型2', value: '2' },
      { label: '商品类型3', value: '3' },
    ], showSearch: true,onSearch:(value:string)=>{
        console.log(value)
    }},
  },
  {
    type: 'cascader',
    props: { label: '地区' },
    id: 'cascaderValue',
    innerComponentProps: {
      fieldNames: { label: 'title', value: 'value', children: 'children' },
      changeOnSelect: true,
      allowClear: true,
      showSearch: true,
      options: [
        {
          title: '1',
          value: '1',
          children: [
            {
              title: '1-1',
              value: '1-1',
              children: [
                {
                  title: '1-1-1',
                  value: '1-1-1',
                },
                {
                  title: '1-1-2',
                  value: '1-1-2',
                },
              ],
            },
            {
              title: '1-2',
              value: '1-2',
              children: [
                {
                  title: '1-2-1',
                  value: '1-2-1',
                },
                {
                  title: '1-2-2',
                  value: '1-2-2',
                },
              ],
            },
          ],
        },
      ],
    },
  },
  {
    type: 'tree',
    props: { label: '角色' },
    innerComponentProps: {
      fieldNames: { children: 'children', title: 'title', key: 'id', value: 'value' },
      allowClear: true,
      multiple: true,
      showSearch: true,
      treeCheckable: true,
      treeData: [
        {
          id: '1',
          value: '1',
          title: 'a',
          children: [
            { id: '1-1', title: 'a1', value: '1-1' },
            { id: '1-2', title: 'a2', value: '1-2' },
          ],
        },
        {
          id: '2',
          title: 'b',
          value: '2',
          children: [
            { id: '2-1', title: 'b1', value: '2-1' },
            { id: '2-2', title: 'b2', value: '2-2' },
          ],
        },
      ],
    },
    id: 'treeValue',
  },
  {
    type: 'time',
    props: { label: '时间' },
    id: 'timeValue',
    innerComponentProps: { allowClear: true, inputReadOnly: true },
  },
  { type: 'date', props: { label: '日期' }, id: 'dateValue', innerComponentProps: {} },
  { type: 'date-range', props: { label: '日期范围' }, id: 'dateRangeValue', innerComponentProps: {} },
  {type:'input',props:{ label: '名称',},id:'inputValue',innerComponentProps: {}},
  { type: 'number', props: { label: '数量' }, id: 'numberValue', innerComponentProps: {} },
] as searchOptionType[]